import vue from 'vue'
import VueRouter from 'vue-router'
// 导入组件
import LoginView from "../views/LoginView.vue"
vue.use(VueRouter)
const router=new VueRouter({
    routes:[
        {path:"/",component:LoginView,name:'login' },
        {path:"/register",name:"register",component:()=>import("../views/RegisterView.vue")},
        {path:"/pending",name:"pending",component:()=>import("../views/PenddingView.vue")},
        {path:"/home",name:"home",component:()=>import("../views/HomeView.vue")},
    ]
})
export default router